﻿#region Summary

// 
// Owner : JackieHan 
// 
// Solution : Infos 
// 
// Project : Jackie.Utility
// 
// File : DateTimeExtension.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 时间扩展
// 
// History : 
//			2012-05-28 17:54:38	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;

#endregion

namespace Jackie.Utility.CustomExtension
{
    ///<summary>
    ///时间扩展
    ///</summary>
    public static class DateTimeExtension
    {

        /// <summary>
        /// 最小时间(数据库要求)
        /// </summary>
        public static DateTime MinDate
        {
            get { return new DateTime(1753, 1, 1, 12, 0, 0); }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="dayOfWeek"></param>
        /// <returns></returns>
        public static string ToChineseString(this DayOfWeek dayOfWeek)
        {
            var day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
            return day[(int)dayOfWeek];
        }
    }
}